package com.atguigu.yygh.user.service;

import com.atguigu.yygh.common.result.Result;
import com.atguigu.yygh.model.user.Account;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface AccountService extends IService<Account> {
    // 创建图灵验证码
    void createCaptcha(HttpServletResponse response, String captchaKey);

    // 注册
    Result register(String captcha, String captchaKey, Account account);

    Result login(String captcha, String captchaKey, Account account);
}
